package ygw.study.designPatterns.decorator;

/**
 * <p>
 * 创建扩展了 ShapeDecorator 类的实体装饰类
 * </p>
 * <p>
 * Copyright:2021.All rights reserved.
 * </p>
 * <p>
 * Company:Zsoft
 * </p>
 * <p>
 * CreateDate:2021-05-21 12:51
 * </p>
 *
 * @author YuGongWen
 * @history Mender:YuGongWen；Date:2021-05-21 12:51；
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("Border Color: Red");
    }
}